require 'model/candidato_dao'

module Table
  def self.candidato_header
    columns = CandidatoDao.instance.column_names
    columns.each do |column|
      print "#{column.ljust(20)}|"
    end
    puts "\n"
    columns.each { |e| print " ------------------ +" }
    puts "\n"
  end

  def self.eleitor_header
    columns = EleitorDao.instance.column_names
    columns.each do |column|
      print "#{column.ljust(20)}|"
    end
    puts "\n"
    columns.each { |e| print " ------------------ +" }
    puts "\n"
  end
end
